#include "ScreenManager.h"


ScreenManager::ScreenManager()
{
	m_numObject = 0;
}

ScreenManager::~ScreenManager()
{
	
}

void ScreenManager::registerObjectForRendering(GameObject* obj)
{
	m_objs[m_numObject++] = obj;
}

void ScreenManager::DrawAll()
{
	for(int i =0;i<m_numObject;i++)
	{
		m_objs[i]->Draw();
	}
	m_numObject = 0;
}